package com.ruoyi.etp.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.etp.mapper.EtpOrganizationStatsMapper;
import com.ruoyi.etp.domain.EtpOrganizationStats;
import com.ruoyi.etp.service.IEtpOrganizationStatsService;

/**
 * 团队分析Service业务层处理
 * 
 * @author xmj
 * @date 2025-09-12
 */
@Service
public class EtpOrganizationStatsServiceImpl implements IEtpOrganizationStatsService 
{
    @Autowired
    private EtpOrganizationStatsMapper etpOrganizationStatsMapper;

    /**
     * 查询团队分析
     * 
     * @param id 团队分析主键
     * @return 团队分析
     */
    @Override
    public EtpOrganizationStats selectEtpOrganizationStatsById(Long id)
    {
        return etpOrganizationStatsMapper.selectEtpOrganizationStatsById(id);
    }

    /**
     * 查询团队分析列表
     * 
     * @param etpOrganizationStats 团队分析
     * @return 团队分析
     */
    @Override
    public List<EtpOrganizationStats> selectEtpOrganizationStatsList(EtpOrganizationStats etpOrganizationStats)
    {
        return etpOrganizationStatsMapper.selectEtpOrganizationStatsList(etpOrganizationStats);
    }

    /**
     * 新增团队分析
     * 
     * @param etpOrganizationStats 团队分析
     * @return 结果
     */
    @Override
    public int insertEtpOrganizationStats(EtpOrganizationStats etpOrganizationStats)
    {
        return etpOrganizationStatsMapper.insertEtpOrganizationStats(etpOrganizationStats);
    }

    /**
     * 修改团队分析
     * 
     * @param etpOrganizationStats 团队分析
     * @return 结果
     */
    @Override
    public int updateEtpOrganizationStats(EtpOrganizationStats etpOrganizationStats)
    {
        etpOrganizationStats.setUpdateTime(DateUtils.getNowDate());
        return etpOrganizationStatsMapper.updateEtpOrganizationStats(etpOrganizationStats);
    }

    /**
     * 批量删除团队分析
     * 
     * @param ids 需要删除的团队分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpOrganizationStatsByIds(Long[] ids)
    {
        return etpOrganizationStatsMapper.deleteEtpOrganizationStatsByIds(ids);
    }

    /**
     * 删除团队分析信息
     * 
     * @param id 团队分析主键
     * @return 结果
     */
    @Override
    public int deleteEtpOrganizationStatsById(Long id)
    {
        return etpOrganizationStatsMapper.deleteEtpOrganizationStatsById(id);
    }
}
